package userCollenter.dao1;

import org.springframework.stereotype.Component;
import userCollenter.pojo.User;

/**
 * UserFeignClient 实现类
 */
@Component
public class UserFeignClientFeign implements UserFeignClient {
    /**
     * 回显方法类
     * @param id 访问id
     * @return user实体
     */
    @Override
    public User queryUserById(String id) {
        User user = new User();
        user.setUid(id);
        user.setUsername("未知用户,请重新输入!");
        return user;
    }
}
